package com.bdqn.Ink;

import java.awt.Color;
import com.bdqn.entity.Ink;

/**
 * 灰色墨盒
 */
public class GreyInk implements Ink {
	// 打印采用灰色
	public String getColor(int red, int green, int blue) {
		int c = (red + green + blue) / 3;
		Color color = new Color(c, c, c);
		return "#" + Integer.toHexString(color.getRGB()).substring(2);
	}
}
